package cn.hchaojie.camp.day02;

/**
 * -1,1	0,1	   1,1
  -1,0    0,0    1,0
-1,-1   0,-1   1,-1


 * @author hchaojie
 *
 */
public class DemoCoordinate {
	public static void main(String[] args) {
		int number = 2;
		// -1,1	   0,1	  1,1
		for (int y = number; y >= -number; y--) {
			for (int x = -number; x <= number; x++) {
				if (Math.abs(x) == Math.abs(y)) {
					System.out.print(" *");
				} else {
					System.out.print("  ");
				}
			}
			System.out.println();
		}
	}
}
